var rsp=$response.body;
//var bodystr = eval("(" + rsp+ ")");

var newurl = "http://httpbin.org/post";

let params = {
	url: newurl,
	headers: {
		'Content-Type': "application/json"
	},
	body: rsp,
}

$httpClient.post(params, function(error, response, data) {
    //2.0.5版本 data有时候能接到真实返回值  有时候是空字符串
    $notification.post("测试接口回执","",JSON.stringify(data));

    var newurl2 = "https://api.day.app/push";
    var header = {'Content-Type': 'application/json; charset=utf-8'};
    var tzjson = {"title": '本地宝小程序-测试消息',"body": JSON.stringify(data),"device_key": "SR5R2j5UCzZmkq23WcuwCg","badge": 1,"sound": "birdsong.caf","icon": "https://day.app/assets/images/avatar.jpg"};
    
    var newbody = JSON.stringify(tzjson);

    let params = {
        url: newurl2,
        headers: header,
        body: newbody, 
    }
    $httpClient.post(params, function(error, response, data) {})
})